<?php
            
namespace Admin\Model;
use Think\Model;
use Think\Upload;

/**
 * 商品规格模型
 *  
 */

class ProductImageLeanCloudModel extends SyncModel{
    
    protected $tableName = 'product_image'; 
    
    //leancloud表名
    protected $leancloudName = "ProductImage";
    
    //映射的字段
    protected $_map = array('objectId' => 'id','createdAt'=>'createdate', 'updatedAt'=>'lastupdate'); 
    
    //leancloud 字段类型
    protected $leancloudelds = array(
        "objectId"=>"String",
        "fileurl"=>"String",
        "createdAt"=>"Date",
        "updatedAt"=>"Date",
        'syncStatus'=>"Number",
        'status'=>"Number"
    );
    
    //配置字段
    protected $fields = array(
        'objectId', 
        'fileurl',
        'createdAt',
        'updatedAt',
        'syncStatus',
        'status',
        '_type'=>array(
            'objectId'=>'int', 
            'fileurl'=>'varchar',
            'createdAt'=>'int', 
            'updatedAt'=>'int',
            'syncStatus'=>'int', 
            'status'=>'int'
        )
    );
   
     
}
